package com.base.myproject.client.tools;


public class Debug {

	static boolean isdebug = false;
	static int level = 0;
	public static void printf(Object x,int l)
	{
		if(level>=l)
		System.out.println(x);
	}
	public static void printf(Object x)
	{
		printf(x,4);
	}
	/**
	 * @return the isdebug
	 */
	public static boolean isIsdebug() {
		return isdebug;
	}
	/**
	 * @param isdebug the isdebug to set
	 */
	public static void setIsdebug(boolean isdebug) {
		Debug.isdebug = isdebug;
		
	}
	/**
	 * @return the level
	 */
	public static int getLevel() {
		return level;
	}
	/**
	 * @param level the level to set
	 */
	public static void setLevel(int level) {
		Debug.level = level;
	}
	
	
}
